﻿using System;
using System.Collections.Generic;
using BehaviorModel;
using BehaviorModel.Block;
using CommandLogic.Data;

namespace CommandLogic.Command
{
    public class DisconnectBlocksCommand : IQsmCommand
    {
        public CommandData Execute(CommandData data)
        {
            var senderRecieverData = (SenderRecieverData)data;

            var senderBlock = senderRecieverData.SenderBlock;
            var recieverBlock = senderRecieverData.RecieverBlock;

            BlockController.GetInstance().Disconnect(senderBlock, recieverBlock);

            return null;
        }
    }
}
